﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AttendanceSysytem.utils
{
    public class BgImage
    {

        /// <summary>
        /// 显示表情
        /// </summary>
        /// <param name="bg">类型</param>
        /// <returns></returns>
        public static string Display(BgImageType bg)
        {
            switch (bg)
            {
                case BgImageType.Angry:
                    return ConfigurationManager.AppSettings["angryImg"].ToString();
                case BgImageType.Kiss:
                    return ConfigurationManager.AppSettings["kissImg"].ToString();
                case BgImageType.Laugh:
                    return ConfigurationManager.AppSettings["laughImg"].ToString();
                case BgImageType.Speechless:
                    return ConfigurationManager.AppSettings["speechless"].ToString();
                default:
                    return "";
            }
        }

    }

    public enum BgImageType
    {
        Angry,
        Kiss,
        Laugh,
        Speechless
    }
}
